P+ - Ice Climbers - Subroutine - 0x11fb8
- IntVariableIncrement { variable: LongtermAccessInt (0x5b) }
- IntVariableIncrement { variable: RandomAccessInt(ThrowDataParam1) }
- BoolVariableSetTrue { variable: LongtermAccessBool(CanNotTeeter) }
- if (OnGround)
- if ((InternalConstantInt(HorizontalCharacterVelocity) GreaterThan scalar(0.9)))
- SetOrAddVelocity(SetOrAddVelocity { x_vel: 0.0, y_vel: 0.0, x_set: true, y_set: true })
- AddVelocity { x_vel: Constant(0.9), y_vel: Constant(0.0) }
- else
- if ((InternalConstantInt(HorizontalCharacterVelocity) LessThan scalar(-0.9)))
- SetOrAddVelocity(SetOrAddVelocity { x_vel: 0.0, y_vel: 0.0, x_set: true, y_set: true })
- AddVelocity { x_vel: Constant(-0.9), y_vel: Constant(0.0) }
- else
- if ((InternalConstantInt(HorizontalCharacterVelocity) GreaterThan scalar(1.2)))
- FloatVariableSet { variable: LongtermAccessFloat (0x48), value: InternalConstantInt(VerticalCharacterVelocity) }
- SetOrAddVelocity(SetOrAddVelocity { x_vel: 0.0, y_vel: 0.0, x_set: true, y_set: true })
- AddVelocity { x_vel: Constant(1.2), y_vel: Variable(LongtermAccessFloat(Address(72))) }
- else
- if ((InternalConstantInt(HorizontalCharacterVelocity) LessThan scalar(-1.2)))
- FloatVariableSet { variable: LongtermAccessFloat (0x48), value: InternalConstantInt(VerticalCharacterVelocity) }
- SetOrAddVelocity(SetOrAddVelocity { x_vel: 0.0, y_vel: 0.0, x_set: true, y_set: true })
- AddVelocity { x_vel: Constant(-1.2), y_vel: Variable(LongtermAccessFloat(Address(72))) }
- if (ButtonPress value(1))
- IfStatementAnd ((LongtermAccessInt (0x5b) GreaterThanOrEqual scalar(5)))
- if ((InternalConstantInt(CurrentSubaction) GreaterThan scalar(468)))
- IfStatementAnd (BoolIsTrue RandomAccessBool(EnableLandingLag))
- AddVelocity { x_vel: Constant(0.0), y_vel: Constant(0.06) }
- else
- if ((InternalConstantInt(CurrentSubaction) GreaterThan scalar(468)))
- AddVelocity { x_vel: Constant(0.0), y_vel: Constant(0.14) }
- else
- if (BoolIsTrue RandomAccessBool(EnableLandingLag))
- AddVelocity { x_vel: Constant(0.0), y_vel: Constant(0.11) }
- else
- AddVelocity { x_vel: Constant(0.0), y_vel: Constant(0.25) }
- IntVariableSet { variable: LongtermAccessInt (0x5b), value: 0 }
- BoolVariableSetFalse { variable: LongtermAccessBool(CanNotTeeter) }